function MyEvent() {

    function click(event) {
        console.log(event, '===click===')
    }
    function change(event) {
        console.log(event, '===change===')
    }
    return <>
        <button onClick={click}>点我</button>
        <input onChange={change} type="text" placeholder="请输入" />
    </>
}

export default MyEvent